<template>
  <div class="dashboard-editor-container">
    <el-row :gutter="32">
      <el-col :xs="12" :sm="12" :lg="8">
        <div class='card-panel'>
          <div class="card-panel-icon-wrapper icon-people">
            <svg-icon icon-class="park" class-name="card-panel-icon"/>
          </div>
          <div class="card-panel-description">
            <div class="card-panel-text"><span >停车场数量</span>
              <span style="margin-left: 1em;margin-right: 0.5em">路内</span>
              <count-to style="font-size: 1.5em;color: #3669ad" class="card-panel-num" :startVal="0" :endVal="369"></count-to>
              57.9%
            </div>
            <div class="card-panel-text" align="right"><span style="font-size: 1.5em;margin-right: 1em;color: #3669ad">637</span>
              <span style="margin-left: 1em;margin-right: 0.5em">路外</span>
              <count-to style="font-size: 1.5em;color: #3669ad" class="card-panel-num" :startVal="0" :endVal="268" :duration="2600"></count-to>
              42.1%
            </div>
          </div>
        </div>
      </el-col>
      <el-col :xs="12" :sm="12" :lg="8">
        <div class='card-panel'>
          <div class="card-panel-icon-wrapper icon-people">
            <svg-icon icon-class="bowei" class-name="card-panel-icon"/>
          </div>
          <div class="card-panel-description">
            <div class="card-panel-text"><span>泊位数量</span>
              <span style="margin-left: 1em;margin-right: 0.5em">路内</span>
              <count-to style="font-size: 1.5em;color: #080470" class="card-panel-num" :startVal="5000" :endVal="16985"></count-to>
              70.8%
            </div>
            <div class="card-panel-text" align="right" ><span style="font-size: 1.5em;margin-right: 1em;color: #080470">23965</span>
              <span style="margin-right: 0.5em">路外</span>
              <count-to style="font-size: 1.5em;color: #080470" class="card-panel-num" :startVal="3000" :endVal="6980" ></count-to>
              29.2%
            </div>
          </div>
        </div>
      </el-col>
      <el-col :xs="12" :sm="12" :lg="8">
        <div class='card-panel'>
          <div class="card-panel-icon-wrapper icon-people">
            <svg-icon icon-class="zaiting" class-name="card-panel-icon"/>
          </div>
          <div class="card-panel-description">
            <div class="card-panel-text"><span>在停车数量</span>
              <span style="margin-left: 1em;margin-right: 0.5em">路内</span>
              <count-to style="font-size: 1.5em;color: red" class="card-panel-num" :startVal="1000" :endVal="5632"></count-to>
              78.3%
            </div>
            <div class="card-panel-text" align="right"><span style="font-size: 1.5em;margin-right: 1em;color: red">7195</span>
              <span style="margin-right: 0.5em">路外</span>
              <count-to style="font-size: 1.5em;color: red" class="card-panel-num" :startVal="1000" :endVal="1563"></count-to>
              21.7%
            </div>
          </div>
        </div>
      </el-col>
    </el-row>

    <el-row :gutter="32">
      <el-col :xs="24" :sm="24" :lg="10">
        <div class="chart-wrapper">
          <el-tag>停车场接入流水</el-tag>
          <tcliushui></tcliushui>
        </div>
      </el-col>
      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <el-tag>预警信息列表</el-tag>
          <Yujing></Yujing>
        </div>
      </el-col>
      <el-col :xs="24" :sm="24" :lg="6">
        <div class="chart-wrapper">
          <el-tag>严重警告信息列表</el-tag>
          <yanzhongjinggao></yanzhongjinggao>
        </div>
      </el-col>
    </el-row>

    <el-row :gutter="32">
      <el-col :xs="24" :sm="24" :lg="14">
        <div class="chart-wrapper">
          <el-tag>违停信息</el-tag>
          <Weiting></Weiting>
        </div>
      </el-col>

      <el-col :xs="24" :sm="24" :lg="10">
        <div class="chart-wrapper">
          <el-tag>疑似僵尸车列表</el-tag>
          <jiangshiche></jiangshiche>
        </div>
      </el-col>
    </el-row>

    <el-row :gutter="32">
      <el-col :xs="24" :sm="24" :lg="24">
        <div class="chart-wrapper">
          <el-tag>车辆入场数量</el-tag>
          <putin></putin>
        </div>
      </el-col>
    </el-row>

  </div>
</template>

<script>
  import CountTo from 'vue-count-to'
  import Yujing from './show/yujing'
  import Weiting from './show/weiting'
  import Tcliushui from './show/tcliushui'
  import Jiangshiche from './show/jiangshiche'
  import Yanzhongjinggao from './show/yanzhongjinggao'
  import Putin from './show/putin'

  export default {
    data() {
      return {}
    },
    components: {
      Putin,
      Yanzhongjinggao,
      Jiangshiche,
      Tcliushui,
      Weiting,
      Yujing,
      CountTo
    },
    mounted() {
    },
    methods: {}
  }
</script>

<style lang="less" scoped>
  .dashboard-editor-container {
    padding: 32px;
    background-color: rgb(240, 242, 245);
    .chart-wrapper {
      background: #fff;
      padding: 16px 16px 0;
      margin-bottom: 32px;
    }
  }

  .card-panel-col {
    margin-bottom: 32px;
  }

  .card-panel {
    margin-bottom: 32px;
    height: 110px;
    cursor: pointer;
    font-size: 12px;
    position: relative;
    overflow: hidden;
    color: #666;
    background: #fff;
    box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);
    border-color: rgba(0, 0, 0, .05);
    &:hover {
      .card-panel-icon-wrapper {
        color: #fff;
      }
      .icon-people {
        background: #40E0D0;
      }
      .icon-message {
        background: #36a3f7;
      }
      .icon-money {
        background: #EEB422;
      }
      .icon-shoppingCard {
        background: #548B54
      }
    }
    .icon-people {
      color: #40c9c6;
    }
    .icon-message {
      color: #36a3f7;
    }
    .icon-money {
      color: #F5A327;
    }
    .icon-shoppingCard {
      color: #ACD261
    }
    .card-panel-icon-wrapper {
      float: left;
      margin: 14px 0 0 14px;
      padding: 16px;
      transition: all 0.38s ease-out;
      border-radius: 6px;
    }
    .card-panel-icon {
      float: left;
      font-size: 48px;
    }
    .card-panel-description {
      float: right;
      font-weight: bold;
      margin: 26px;
      margin-left: 0px;
      .card-panel-text {
        line-height: 18px;
        color: rgba(0, 0, 0, 0.45);
        font-size: 16px;
        margin-bottom: 12px;
      }
      .card-panel-num {
        font-size: 20px;
      }
    }
  }

  .card-panel-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
  }

</style>
